package com.foreknow.oop5;

/**
 * 继承是java中可重用的一种体现
 */
public class A {
  private int id;
  private String name;
  private int age;

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getAge() {
    return age;
  }

  public void setAge(int age) {
    this.age = age;
  }

  public void showInfo(){
    System.out.println(getId()+"---"+getName()+"--"+getAge());
  }

}
